package com.cneport.das.server.util.wmq;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;

/**
 * @author GavinZhang
 * @version 1.0
 * @desc： MQ 参数
 * @company 东方物通科技有限（北京）公司
 * @date 2021/8/24 15:35
 */
@Data
@Configuration
@AutoConfigureBefore(WmqConf.class)
@ConditionalOnProperty(name = "mq.wmq.enable", havingValue = "true")
public class MqParam {
    @Value("${wmq.mq.host}")
    private String host;

    @Value("${wmq.mq.port}")
    private int port;

    @Value("${wmq.mq.username}")
    private String username;

    @Value("${wmq.mq.password}")
    private String password;

    @Value("${wmq.mq.queueManage}")
    private String queueManager;

    @Value("${wmq.mq.channel}")
    private String channel;

    @Value("${wmq.mq.cacheSize}")
    private int cacheSize;

    @Value("${wmq.mq.CCSID}")
    private int CCSID;

    @Value("${wmq.mq.receiveTimeout}")
    private long receiveTimeout;
}
